package pers.xx.sbm.base;

import com.aspose.words.BreakType;
import com.aspose.words.Document;
import com.aspose.words.DocumentBuilder;
import com.aspose.words.ParagraphAlignment;

import java.util.ArrayList;
import java.util.List;

public class DailyConstant {

	public static List<String> dailyAreaReportList = new ArrayList<String>();
	public static List<String> dailySchoolReportList = new ArrayList<String>();
	public static List<String> dailyAreaSubReportList = new ArrayList<String>();
	public static List<String> dailySchoolSubjectReportList = new ArrayList<String>();
	public static List<String> dailyMasterReportList = new ArrayList<String>();
	public static List<String> dailyTeacherReportList = new ArrayList<String>();
	static {

		dailyAreaReportList.add("report1_1");
		dailyAreaReportList.add("report1_2");
		dailyAreaReportList.add("report1_3");
		dailyAreaReportList.add("report2_1_1");
		dailyAreaReportList.add("report2_1_2");
		dailyAreaReportList.add("report2_1_3");
		dailyAreaReportList.add("report2_1_4");
		dailyAreaReportList.add("report2_1_5");
		dailyAreaReportList.add("report2_1_6");
		dailyAreaReportList.add("report2_1_7");
		dailyAreaReportList.add("report2_2_1");
		dailyAreaReportList.add("report2_2_2");
		dailyAreaReportList.add("report2_2_3");
		dailyAreaReportList.add("report2_2_4");
		dailyAreaReportList.add("report2_2_5");
		dailyAreaReportList.add("report2_2_6");
		dailyAreaReportList.add("report2_2_7");
		dailyAreaReportList.add("report2_3_1");
		dailyAreaReportList.add("report2_3_2");
		dailyAreaReportList.add("report2_3_3");
		dailyAreaReportList.add("report2_3_4");
		dailyAreaReportList.add("report2_3_5");
		dailyAreaReportList.add("report2_3_6");
		dailyAreaReportList.add("report2_3_7");
		dailyAreaReportList.add("report2_4_1");
		dailyAreaReportList.add("report2_4_2");
		dailyAreaReportList.add("report2_4_3");
		dailyAreaReportList.add("report2_4_4");
		dailyAreaReportList.add("report2_4_5");
		dailyAreaReportList.add("report2_4_6");
		dailyAreaReportList.add("report2_4_7");
		dailyAreaReportList.add("report2_5_1");
		dailyAreaReportList.add("report2_5_2");
		dailyAreaReportList.add("report2_5_3");
		dailyAreaReportList.add("report2_5_4");
		dailyAreaReportList.add("report2_5_5");
		dailyAreaReportList.add("report2_5_6");
		dailyAreaReportList.add("report2_5_7");
		dailyAreaReportList.add("report2_6_1");
		dailyAreaReportList.add("report2_6_2");
		dailyAreaReportList.add("report2_6_3");
		dailyAreaReportList.add("report2_6_4");
		dailyAreaReportList.add("report2_6_5");
		dailyAreaReportList.add("report2_6_6");
		dailyAreaReportList.add("report2_6_7");
		dailyAreaReportList.add("report2_7_1");
		dailyAreaReportList.add("report2_7_2");
		dailyAreaReportList.add("report2_7_3");
		dailyAreaReportList.add("report2_7_4");
		dailyAreaReportList.add("report2_7_5");
		dailyAreaReportList.add("report2_7_6");
		dailyAreaReportList.add("report2_7_7");
		dailyAreaReportList.add("report2_8_1");
		dailyAreaReportList.add("report2_8_2");
		dailyAreaReportList.add("report2_8_3");
		dailyAreaReportList.add("report2_8_4");
		dailyAreaReportList.add("report2_8_5");
		dailyAreaReportList.add("report2_8_6");
		dailyAreaReportList.add("report2_8_7");
		dailyAreaReportList.add("report2_9_1");
		dailyAreaReportList.add("report2_9_2");
		dailyAreaReportList.add("report2_9_3");
		dailyAreaReportList.add("report2_9_4");
		dailyAreaReportList.add("report2_9_5");
		dailyAreaReportList.add("report2_9_6");
		dailyAreaReportList.add("report2_9_7");


		dailySchoolReportList.add("report1_1");
		dailySchoolReportList.add("report1_2");
		dailySchoolReportList.add("report1_3");
		dailySchoolReportList.add("report2_1_1");
		dailySchoolReportList.add("report2_1_2");
		dailySchoolReportList.add("report2_1_3");
		dailySchoolReportList.add("report2_1_4");
		dailySchoolReportList.add("report2_1_5");
		dailySchoolReportList.add("report2_2_1");
		dailySchoolReportList.add("report2_2_2");
		dailySchoolReportList.add("report2_2_3");
		dailySchoolReportList.add("report2_2_4");
		dailySchoolReportList.add("report2_2_5");
		dailySchoolReportList.add("report2_3_1");
		dailySchoolReportList.add("report2_3_2");
		dailySchoolReportList.add("report2_3_3");
		dailySchoolReportList.add("report2_3_4");
		dailySchoolReportList.add("report2_3_5");
		dailySchoolReportList.add("report2_4_1");
		dailySchoolReportList.add("report2_4_2");
		dailySchoolReportList.add("report2_4_3");
		dailySchoolReportList.add("report2_4_4");
		dailySchoolReportList.add("report2_4_5");
		dailySchoolReportList.add("report2_5_1");
		dailySchoolReportList.add("report2_5_2");
		dailySchoolReportList.add("report2_5_3");
		dailySchoolReportList.add("report2_5_4");
		dailySchoolReportList.add("report2_5_5");
		dailySchoolReportList.add("report2_6_1");
		dailySchoolReportList.add("report2_6_2");
		dailySchoolReportList.add("report2_6_3");
		dailySchoolReportList.add("report2_6_4");
		dailySchoolReportList.add("report2_6_5");
		dailySchoolReportList.add("report2_7_1");
		dailySchoolReportList.add("report2_7_2");
		dailySchoolReportList.add("report2_7_3");
		dailySchoolReportList.add("report2_7_4");
		dailySchoolReportList.add("report2_7_5");
		dailySchoolReportList.add("report2_8_1");
		dailySchoolReportList.add("report2_8_2");
		dailySchoolReportList.add("report2_8_3");
		dailySchoolReportList.add("report2_8_4");
		dailySchoolReportList.add("report2_8_5");
		dailySchoolReportList.add("report2_9_1");
		dailySchoolReportList.add("report2_9_2");
		dailySchoolReportList.add("report2_9_3");
		dailySchoolReportList.add("report2_9_4");
		dailySchoolReportList.add("report2_9_5");

		dailyAreaSubReportList.add("report1_1");
		dailyAreaSubReportList.add("report1_2");
		dailyAreaSubReportList.add("report1_3");
		dailyAreaSubReportList.add("report1_4");
		dailyAreaSubReportList.add("report1_5");
		dailyAreaSubReportList.add("report1_6");
		dailyAreaSubReportList.add("report1_7");


		dailySchoolSubjectReportList.add("report1_1");
		dailySchoolSubjectReportList.add("report1_2");
		dailySchoolSubjectReportList.add("report1_3");
		dailySchoolSubjectReportList.add("report2_1");
		dailySchoolSubjectReportList.add("report2_2");
		dailySchoolSubjectReportList.add("report2_3");
		dailySchoolSubjectReportList.add("report2_4");
		dailySchoolSubjectReportList.add("report2_5");

		dailyMasterReportList.add("report1_1");
		dailyMasterReportList.add("report2_1");
		dailyMasterReportList.add("report2_2");
		dailyMasterReportList.add("report2_3");
		dailyMasterReportList.add("report2_4");
		dailyMasterReportList.add("report2_5");
		dailyMasterReportList.add("report2_6");
		dailyMasterReportList.add("report2_7");
		dailyMasterReportList.add("report2_8");
		dailyMasterReportList.add("report2_9");
		dailyMasterReportList.add("report2_10");
		dailyMasterReportList.add("report3_1");
		dailyMasterReportList.add("report3_2");
		dailyMasterReportList.add("report3_3");
		dailyMasterReportList.add("report3_4");
		dailyMasterReportList.add("report3_5");
		dailyMasterReportList.add("report3_6");
		dailyMasterReportList.add("report3_7");
		dailyMasterReportList.add("report3_8");
		dailyMasterReportList.add("report3_9");
		dailyMasterReportList.add("report4_1");
		dailyMasterReportList.add("report4_2");
		dailyMasterReportList.add("report4_3");
		dailyMasterReportList.add("report4_4");
		dailyMasterReportList.add("report4_5");
		dailyMasterReportList.add("report4_6");
		dailyMasterReportList.add("report4_7");
		dailyMasterReportList.add("report4_8");
		dailyMasterReportList.add("report4_9");

		dailyTeacherReportList.add("report1_1");
		dailyTeacherReportList.add("report2_1");
		dailyTeacherReportList.add("report2_2");
		dailyTeacherReportList.add("report2_3");
		dailyTeacherReportList.add("report2_4");
	}

	public static void addOuline(Document doc) throws Exception {
		DocumentBuilder builder = new DocumentBuilder(doc);
		// 将光标移到目录书签
		builder.moveToDocumentStart();

		// 设置目录的格式
		// “目录”两个字居中显示、加粗、搜宋体
		builder.getCurrentParagraph().getParagraphFormat().setAlignment(ParagraphAlignment.CENTER);
		builder.setBold(true);
		builder.getFont().setName("宋体");
		builder.getFont().setSize(20);
		builder.writeln("目录");
		
		// 插入目录，这是固定的
		builder.insertTableOfContents("\\o \"1-3\" \\h \\z \\u");
		builder.insertBreak(BreakType.PAGE_BREAK);
		doc.updateFields();
	}
}
